package com.chare.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chare.pojo.Admin;
import com.chare.pojo.Role;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shi
 * @since 2022-06-17
 */
public interface RoleMapper extends BaseMapper<Role> {
//根据用户id查角色 从而获得权限
    List<Role> getRoles(Integer adminId);


}
